package tset;

import java.util.List;

import bean.Library;
import bean.Student;
import sql.SQLConnect;

public class Demo {
	public static void main(String[] args) {
		SQLConnect sqlconn = new SQLConnect();
		
		/*Student student = new Student();
		student.setName("王维");
		student.setStudentNum("2220163242");
		student.setProfession("软件工程");
		student.setGrade("2");
		student.setSex(1);
		sqlconn.insertStudent(student);*/
		
		/*List<Student> studentList = sqlconn.selectAllStudent();
		System.out.println(studentList);*/
		
		Library library = new Library();
		library.setBookId("TP312.098.456-01");
		library.setBookName("C语言入门教程");
		library.setBorrowTime("2017年9月10日");
		library.setReturnTime("2017年11月10日");
		sqlconn.insertLibrary(library);
		
		/*List<Library> libraryList = sqlconn.selectAllLibrary();
		System.out.println(libraryList);*/
	}
}
